# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py3-asn1crypto
_pkgname=asn1crypto
pkgver=1.3.0
pkgrel=0
pkgdesc="Python3 ASN.1 library with a focus on performance and a pythonic API"
url="https://github.com/wbond/asn1crypto"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-asn1crypto" # Backwards compatibility
provides="py-asn1crypto=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 run.py tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="822eb3b7d2d73383f271d3c2c3eeff7353b3869cdec31166f0b6ce4751271843c41b136abbf5829ce9de82f8ec49121e8aac21ed84d795976706243dbc1200ea  asn1crypto-1.3.0.tar.gz"
